interface person{
    name:string;
    age:number;
    sayHi:()=>void;
}
//使用类型
let person:Person={
    name:"lucy",
    age:12,
    sayHi(){}
}

//类型断言
const imgEle=document.getElementById('img') as HTMLImageElement;


